﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using GooglePhone;
using ApplePhone;
using Phone.Interface;
using System.Configuration;
using Factory;

namespace MyAbstruct
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }


        private BasePhone basephone = ObjectFactory.CreatePhone(int.Parse(ConfigurationManager.AppSettings["PhoneType"]));
        private void button1_Click(object sender, EventArgs e)
        {
            basephone.Message();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            basephone.Call();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            basephone.System();
        }

        private void button4_Click(object sender, EventArgs e)
        {
           // basephone.Pay();
        }
    }
}
